package com.gln.bloger.dao;

import java.util.List;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.Tag;
import com.gln.bloger.pojos.Website;
/**
 * 
 * @author renxj
 *
 */
public interface TagDao extends BaseDao<Tag>{
	/**
	 * get hot tags
	 * @return
	 * @throws BlogerException
	 */
	public List<Tag> getHotTags(Website website, int size)throws BlogerException;
	/**
	 * get all tags
	 * @param website
	 * @return
	 * @throws BlogerException
	 */
	public List<Tag> list(Website website) throws BlogerException ;
	/**
	 * get tag by name
	 * @param website
	 * @param name
	 * @return
	 * @throws BlogerException
	 */
	public Tag getTagByName(Website website, String name) throws BlogerException;
}
